package net.ncraft.mc.easyframework.rabbitmq.core;

import com.rabbitmq.client.Connection;
import com.rabbitmq.client.ConnectionFactory;

import java.io.IOException;
import java.util.concurrent.TimeoutException;

public class DefaultRabbitTemplate implements RabbitTemplate{
    private final ConnectionFactory factory;

    public DefaultRabbitTemplate(ConnectionFactory factory) {
        this.factory = factory;
        try {
            Connection connection = factory.newConnection();
        } catch (IOException | TimeoutException e) {
            throw new RuntimeException(e);
        }
    }
}
